<?php
namespace console\controllers\platform;

use business\news\services\NewsService;
use console\controllers\BaseIndexController;

class NewsIndexController extends BaseIndexController
{
    public function actionFull()
    {
        $newIndexService = new NewsService(true);
        $newIndexService->saveIndex();
    }

    public function actionIncrement()
    {
        $newIndexService = new NewsService(false);
        $newIndexService->saveIndex();
    }

}